namespace NuoYan.Excel
{
    [System.Serializable]
    public class ItemDataBase
    {
        /// <summary>
        /// 物品编号 ID
        /// </summary>
        public string ItemID;
        /// <summary>
        /// 物品名称
        /// </summary>
        public string ItemName;
        /// <summary>
        /// 将数据源中的数据克隆一份，防止数据源被修改
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns>克隆数据</returns>
        public T Clone<T>() where T : ItemDataBase
        {
            return MemberwiseClone() as T;
        }
    }
}

